<!--
  文件描述：无缝滚动组件
-->
<template>
<div>
  <div class="mask"></div>
  <div class="content">
    <img class="img1" src="../../static/ali.jpg">
    <img class="img2" src="../../static/baidu.jpg">
    <img class="close" src="../../static/roundclose.png" @click="close">
  </div>
</div>
</template>
<script>
export default {
  name: 'ziZhi',
  data () {
    // 这里存放数据
    return {
    }
  },
  methods: {
    close () {
      this.$emit('close')
    }
  },
  // 监听属性 类似于data概念
  computed: {
    defaultOption () {
      return {
      }
    }
  }
}
</script>
<style scoped lang="less">
//@import url(); 引入公共css类
.mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  opacity: 0.7;
  z-index: 101;
}
.content {
  width: 560px;
  height: 660px;
  background: #fff;
  border-radius: 8px;
  position: fixed;
  z-index: 102;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  text-align: center;
}
.img1 {
  width: 460px;
  height: 210px;
  margin: 40px 0;
}
.img2 {
  width: 460px;
  height: 328px;
}
.close {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 700px;
  width: 60px;
  height: 60px;
  z-index: 103;
}
</style>
